package com.zjny.constant;

/**
 * packageName com.zjny.constant
 *
 * @author cui haida
 * @version JDK 8
 * 2025/6/18
 */
public class CommonConstant {
    /**
     * map初始化大小
     */
    public static final int MAP_INIT_CAP = 16;

    /**
     * 空字符串
     */
    public static final String EMPTY = "";

    /**
     * 格式化相关
     */
    public static final String DECIMAL_FORMAT = "#,###.####"; // 钱，千分符
    public static final String DECIMAL_FORMAT_FOR_RATE = "00.00"; // 汇率

    /**
     * 简体和繁体中文数字
     */
    public static final String ZERO = "零";
    public static final String[] SMALL_CHINESE_NUMBERS = new String[]{"一", "二", "三", "四", "五", "六", "七", "八", "九", "零", "十", "百", "千", "万", "亿"};
    public static final String[] BIG_CHINESE_NUMBERS = new String[]{"壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "零", "拾", "佰", "仟", "萬", "億"};

    /**
     * 操作符号：+， -， *， /， =
     */
    public static final String OP_ADD = "+";
    public static final String OP_SUB = "-";
    public static final String OP_MUL = "*";
    public static final String OP_DIV = "/";
    public static final String OP_EQUAL = "=";
    public static final String OP_NOT_EQUAL = "!=";
    public static final String OP_IS_EQUAL = "==";

    /**
     * 中文标点符号
     */
    public static final String PUNCTUATION_COMMA = "，";
    public static final String PUNCTUATION_COLON = "：";
    public static final String PUNCTUATION_SEMICOLON = "；";
    public static final String PUNCTUATION_END = "。";
    public static final String PUNCTUATION_PAUSE = "、";
    public static final String PUNCTUATION_QUOTE = "“";
    public static final String PUNCTUATION_QUOTE_END = "”";
    public static final String PUNCTUATION_QUESTION = "？";


    /**
     * 常见分割符号
     **/
    public static final String SPLIT_CHN_POINT = "点";
    public static final String SPLIT_POINT = ".";
    public static final String SPLIT_SLASH = "/";
    public static final String SPLIT_LINE = "-";
    public static final String SPLIT_DOU = ",";
    public static final String SPLIT_UNIT_ZU = "族";
    public static final String SPLIT_RE_POINT = "\\.";
    public final static String SPLIT_HEART = "♥";
    public static final String SPLIT_JUDGE_CODE = "@";


    /**
     * 量词常量
     **/
    public static final Integer TWENTY = 20;
    public static final String TEN = "十";
    public static final String THOUSAND = "千";
    public static final String BIG_THOUSAND = "仟";
    public static final String UNIT_WAN = "万";
    public static final String UNIT_YI = "亿";

    /**
     * 量词数组字符串
     */
    public static final String[] SIMPLE_DIGITS = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"};
    public static final String[] BIG_DIGITS = {"零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾"};
    public static final String[] DIGITS = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};

    /**
     * 量词数组字符
     */
    public static final char[] CHAR_SIMPLE_DIGITS = {'零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'};
    public static final char[] CHAR_BIG_DIGITS = {'零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖', '拾'};
    public static final char[] CHAR_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};

    /**
     * mybatis最大分页
     */
    public static final long MAX_PAGE_COUNT = 800L;

    /**
     * 缓冲区大小
     * 同时也是发送数据的协议头最大长度, 如果超过此长度还读不到协议头，会出错
     */
    public static final int BUFFER_SIZE = 1024 * 8;
    public static final int BUFFER = 1024 * 1024 * 10;


    /**
     * request config相关参数
     */
    public static final Integer REQUEST_CONNECT_TIMEOUT = 5000;
    public static final Integer REQUEST_REQUEST_TIMEOUT = 5000;
    public static final Integer REQUEST_SOCKET_TIMEOUT = 10000;
    public static final Boolean REQUEST_CAN_REDIRECT = true;
    public static final String REQUEST_SUCCESS = "1";
    public static final String REQUEST_FAIL = "2";
}